﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ExternalCal.aspx.cs" Inherits="crm_individuals_ExternalCal" %>


<%@ Register TagPrefix="PubHead" TagName="header" Src="../../pub/crm/include/header.ascx" %>
<PubHead:header ID="header" runat="server"></PubHead:header>

<script language="JavaScript" src="../../pub/crm/js/calendar_cn.js" charset="gb2312"></script>

<html>
<body>
    <form id="form1" runat="server">
        <div align="center">
            <table class="poptab">
                <tr>
                    <td class="title">
                        <div id="title">
                            <strong>经销商跟踪</strong></div>
                    </td>
                </tr>
            </table>
            <table width="90%" border="0">
                <tr>
                    <td>
                        <asp:HiddenField ID="hfpart_id" runat="server" />
                        <asp:HiddenField ID="hfquestid" runat="server" />
                        <asp:HiddenField ID="hfpage" runat="server" />
                        <asp:HiddenField ID="hfcacuid" runat="server" />
                        <asp:HiddenField ID="hfindurn" runat="server" />
                        <asp:HiddenField ID="hfinouid" runat="server" />
                        <asp:HiddenField ID="hftraceflag" runat="server" />
                    </td>
                </tr>
            </table>
            <table width="90%" border="0">
                <tr>
                    <td>
                        <table width="100%" class="opertab">
                            <tr class="title">
                                <td bgcolor="#296FAD">
                                    <div align="left">
                                        <font color="#FFFFFF"><b>活动名称：<asp:Label ID="lb_camname" runat="server"></asp:Label></b></font></div>
                                    <asp:TextBox ID="qunaire_status" runat="server" Visible="false" Text=''></asp:TextBox>
                                </td>
                                <td bgcolor="#296FAD">
                                    <div align="right">
                                        <font color="#FFFFFF"><b>外呼时间：<asp:Label ID="lb_obtime" runat="server"></asp:Label></b></font></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <table width="90%" border="0">
                <tr>                   
                    <td align="left"  width="100%">
                        <asp:TextBox TextMode="MultiLine" Rows="6" ID="txt_camname_alias" runat="server"
                            Width="100%">
                            
                        </asp:TextBox>
                    </td>
                </tr>
            </table>            
            <br />
            <asp:Label ID="quest_list" runat="server"></asp:Label>
            <table width="90%" border="0">
                <tr>
                    <td>
                        <div align="center">
                            <asp:Label ID="message" runat="server"></asp:Label>
                        </div>
                    </td>
                </tr>
            </table>
            <br />
            <table width="90%" border="1">
                <tr id="assignmode" runat="server">
                    <td align="right" width="21%">
                        手动分配：
                    </td>
                    <td align="left">
                        <asp:CheckBox ID="islead" runat="server" disabled />
                        是Lead
                        <asp:CheckBox ID="attend" runat="server" disabled />参与活动
                    </td>
                </tr>
                <tr>
                    <td align="right" width="21%">
                        拨打结果标记：
                    </td>
                    <td align="left">
                        <input type="radio" name="rddailresult" value="1" disabled>占线/无人接听
                        <input type="radio" name="rddailresult" value="2" disabled>拒访/中途拒访
                        <input type="radio" name="rddailresult" value="3" disabled>无效号码
                        <br>
                        <input type="radio" name="rddailresult" value="4" disabled>非联系人电话
                        <input type="radio" name="rddailresult" value="5" disabled>重复信息
                        <input type="radio" name="rddailresult" value="6" disabled>联系人不在
                        <input type="radio" name="rddailresult" value="7" disabled>另约时间
                        <input type="radio" name="rddailresult" value="99" disabled>拨打成功
                    </td>
                </tr>
                <tr>
                    <td align="right" width="21%">
                        外拨备注：
                    </td>
                    <td align="left">
                        <textarea name="textarearemark" cols="80" rows="4" htmlencode="false" disabled></textarea>
                    </td>
                </tr>
            </table>
            <br />
            <table width="90%" border="1">
                <tr>
                    <td align="right" width="21%">
                        主管留言：
                    </td>
                    <td align="left">
                        <textarea name="textareadvice" cols="80" rows="4" htmlencode="false" disabled></textarea>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Panel ID="Panel1" runat="server">
            <table width="90%" border="1">
                <tr>
                    <td align="right">
                        跟踪结果标记：
                    </td>
                    <td align="left">
                        <input type="radio" name="rdtrace" value="1">客户放弃购买
                        <input type="radio" name="rdtrace" value="2">考虑其它品牌
                        <br>
                        <input type="radio" name="rdtrace" value="3">客户自行选择经销商
                        <input type="radio" name="rdtrace" value="4">联系信息错误
                        <input type="radio" name="rdtrace" value="5">已录入DS-CRM
                    </td>
                </tr>
                <tr>
                    <td align="right" width="21%" style="height: 62px">
                        备注：
                    </td>
                    <td align="left" style="height: 62px">
                        <textarea name="textareatrace" cols="80" rows="4"></textarea>
                    </td>
                </tr>
            </table>
            </asp:Panel>
            
            <br />
            <table width="90%">
                <tr>
                    <td>
                        <div align="center">
                            <input name="btnreturn" type="button" class="btn" value="返回" onclick="window.location.href='CustomersCall.aspx?camuid=<%=Request.Params["camuid"] %>'" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
    <asp:Label ID="lbscript" runat="server"></asp:Label>
</body>
</html>

<script type="text/javascript">
    if(document.getElementById('hfpart_id').value.indexOf(',')>-1){
    var partidarr=document.getElementById('hfpart_id').value.split(',');     
    for(var vkey in partidarr){        
        if(typeof(eval('document.all.FIELD_ASSISTANT_1'+partidarr[vkey]))!='undefined'){            
            eval('document.all.FIELD_ASSISTANT_1'+partidarr[vkey])[0].checked=true;
            eval('document.all.FIELD_ASSISTANT_1'+partidarr[vkey])[0].disabled=true;
            eval('document.all.FIELD_ASSISTANT_1'+partidarr[vkey])[1].disabled=true;            
            //document.getElementById('table" + partidarr[vkey] + "').style.display='block';            
             if(typeof(eval('document.all.table'+eval('document.all.FIELD_ASSISTANT_1'+partidarr[vkey])[0].value))!='undefined'){ 
              eval('document.all.table'+eval('document.all.FIELD_ASSISTANT_1'+partidarr[vkey])[0].value).style.display='block';
            }
        }
    }   
    } 
</script>

<script>

function checkdailresult()
{
     var dr = document.all["rdtrace"];
        var issel=0;
    
        for(i=0;i<dr.length;i++)
        {
            if(dr[i].checked==true)
            {
                issel= 1;
            }    
        }
        if(issel==0)
        {
            alert("跟踪结果标记不能为空！");
            return false;
        }
        return confirm('确认提交?');
}

//function checkdailresult()
//{
//    if(confirm('确认提交?')){
//        var dr = document.all["rdtrace"];
//        var issel=0;
//    
//        for(i=0;i<dr.length;i++)
//        {
//            if(dr[i].checked==true)
//            {
//                issel= 1;
//            }    
//        }
//        if(issel==0)
//        {
//            alert("拨打结果标记不能为空！");
//            return false;
//        }
//        return true;
//    }
//}


function returnclick()
{     
     window.location.href="CustomersCall.aspx";
}
</script>

